package com.smartleanx.module.hrm.controller.admin.operationlog.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
import java.util.*;

@Schema(description = "管理后台 - 操作日志记录新增/修改 Request VO")
@Data
public class OperationLogSaveReqVO {

    @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "27116")
    private Long id;

    @Schema(description = "单据类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "单据类型不能为空")
    private Integer docType;

    @Schema(description = "业务编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "业务编号不能为空")
    private Long code;

    @Schema(description = "操作人", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "操作人不能为空")
    private String operator;

    @Schema(description = "用户名称", example = "张三")
    private String userNickname;

    @Schema(description = "操作类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "操作类型不能为空")
    private Integer operateType;

    @Schema(description = "操作内容", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "操作内容不能为空")
    private String action;

}
